
/*
 * 	RESPONSE TO REQUEST MESSAGE
 *	this contains a payload based on the request
 *
 */

{
	action: "response",
	v: 0.1,
	for: "ian@peerweave.com",
	who: "myfacespace.com",
	when: 1308283200,
    
    //optional
    error: [
    	{ 
    		type: "captcha", 
    		url: "http://www.recaptcha.com/api/7iytuyl8y8j2h3cu82u.png"
    	}
    ],
    
	//the payload array is in the same order as the request
	payload: [
				
		//user info request
		[
			{
				uid: "nate34",
				name_first: "Nate", 
				name_last: "Bassette", 
				birthday: null, //this could be because he didn't enter it, or you don't have access 
				email: "nate@beyondtherack.com"
			}, 
			{
				uid: "tommy1996",
				name_first: "Tomasz",
				name_last: "Rakowski",
				birthday: "1980-01-30",
				email: "tom@peerweave.com"
			}, 
			//you are not friends with this user and his privacy settings have blocked you from
			//seeing any of his info, instead all you have is his uid
			//even when null, all fields must be present in the resulting array item.
			{ 
				uid: "privacyman76",
				name_first: null, 
				name_last: null, 
				birthday: null, 
				email: null
			}	
		],
		
		//image request
		[
			{
				uid: "3ee05a814",
				url_medium: "http://cdn.myfacespace.com/images/3ee05a814_m.jpg", 
	            name: "Trip to NYC", 
	            description: "We had a lot of fun in NYC over the weekend", 
	            comment_count: 6, 
	            //if no `base` included, a value of 1 is assumed
	            rating: { count: 8, base: 10 } //rating is 8/10
			}, 
			{
				uid: "ae5f4363",
				url_medium: "http://cdn.myfacespace.com/images/ae5f4363_m.jpg", 
	            name: "Having some fun", 
	            description: "We went to the beach and had some fun", 
	            comment_count: 2, 
	            rating: { count: 75, base: 100 }
			}, 
			{
				uid: "3c52d2a65",
				url_medium: "http://cdn.myfacespace.com/images/3c52d2a65_m.jpg", 
	            name: null, 
	            description: null, 
	            comment_count: 7, 
	            rating: { count: 4 } //base = 1
			}, 
			{
				uid: "57ae5f436",
				url_medium: "http://cdn.myfacespace.com/images/57ae5f436_m.jpg", 
	            name: "Sillyiness", 
	            description: null, 
	            comment_count: 0, 
	            rating: null
			}, 
			//this image doesn't exist, or you don't have permission to it
			{
				"ff41e0c2":,
				url_medium: null, 
	            name: null, 
	            description: null, 
	            comment_count: null, 
	            rating: null
			}	
        ],
		
		//images[] request (image album)
		[
			{ uid: "28dc86c72", type: "image", owner: "nate34", posted_on: 1308283200 },
			{ uid: "a8a1bff41", type: "image", owner: "tommy1996", posted_on: 1308283200 },
			{ uid: "596ef98", type: "image", owner: "tommy1996", posted_on: 1308283200 },
			{ uid: "57ae3b", type: "image", owner: "nate34", posted_on: 1308283200 }
		],
		
		//videos[] request (video collection)
		[
			{ uid: "363bfc52d", type: "video", owner: "nate34", posted_on: 1308283200 }
			//no second result since there was only 1 result (despite the "limit: 2")
		]
	}
}